package com.aiiter.house.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.aiiter.house.mapper.HouseChargeItemMapper;
import com.aiiter.house.domain.HouseChargeItem;
import com.aiiter.house.service.IHouseChargeItemService;

/**
 * 存储与房产相关的收费条目信息Service业务层处理
 * 
 * @author yaocheng
 * @date 2024-08-13
 */
@Service
public class HouseChargeItemServiceImpl implements IHouseChargeItemService 
{
    @Autowired
    private HouseChargeItemMapper houseChargeItemMapper;

    /**
     * 查询存储与房产相关的收费条目信息
     * 
     * @param feeId 存储与房产相关的收费条目信息主键
     * @return 存储与房产相关的收费条目信息
     */
    @Override
    public HouseChargeItem selectHouseChargeItemByFeeId(Long feeId)
    {
        return houseChargeItemMapper.selectHouseChargeItemByFeeId(feeId);
    }

    /**
     * 查询存储与房产相关的收费条目信息列表
     * 
     * @param houseChargeItem 存储与房产相关的收费条目信息
     * @return 存储与房产相关的收费条目信息
     */
    @Override
    public List<HouseChargeItem> selectHouseChargeItemList(HouseChargeItem houseChargeItem)
    {
        return houseChargeItemMapper.selectHouseChargeItemList(houseChargeItem);
    }

    /**
     * 新增存储与房产相关的收费条目信息
     * 
     * @param houseChargeItem 存储与房产相关的收费条目信息
     * @return 结果
     */
    @Override
    public int insertHouseChargeItem(HouseChargeItem houseChargeItem)
    {
        return houseChargeItemMapper.insertHouseChargeItem(houseChargeItem);
    }

    /**
     * 修改存储与房产相关的收费条目信息
     * 
     * @param houseChargeItem 存储与房产相关的收费条目信息
     * @return 结果
     */
    @Override
    public int updateHouseChargeItem(HouseChargeItem houseChargeItem)
    {
        return houseChargeItemMapper.updateHouseChargeItem(houseChargeItem);
    }

    /**
     * 批量删除存储与房产相关的收费条目信息
     * 
     * @param feeIds 需要删除的存储与房产相关的收费条目信息主键
     * @return 结果
     */
    @Override
    public int deleteHouseChargeItemByFeeIds(Long[] feeIds)
    {
        return houseChargeItemMapper.deleteHouseChargeItemByFeeIds(feeIds);
    }

    /**
     * 删除存储与房产相关的收费条目信息信息
     * 
     * @param feeId 存储与房产相关的收费条目信息主键
     * @return 结果
     */
    @Override
    public int deleteHouseChargeItemByFeeId(Long feeId)
    {
        return houseChargeItemMapper.deleteHouseChargeItemByFeeId(feeId);
    }
}
